Once you have configured all of the above, your code will look like this:

```tsx
import {AiChat} from '@nlux/react';
import {useUnsafeChatAdapter, ChatAdapterOptions} from '@nlux/openai-react';
import '@nlux/themes/nova.css';

const adapterOptions: ChatAdapterOptions = {
    apiKey: 'your-openai-api-key-here',
    model: 'gpt-3.5-turbo',
    systemMessage: 'Act as a helpful assistant and be funny and engaging.',
};

export const App = () => {
    const openAiAdapter = useUnsafeChatAdapter(adapterOptions);

    return (
        <AiChat
            adapter={openAiAdapter}
            promptBoxOptions={{
                placeholder: 'How can I help you today?'
            }}
        />
    );
};
```

You can now run your app and test the chatbot.<br />
The result is a fully functional chatbot UI:

<div
    style={{
        display: "inline-block",
        border: "1px solid #ddd",
        borderRadius: "4px",
        overflow: "hidden",
        width: "400px",
        height: "387px",
        backgroundImage: 'url("/learn/get-started-guides/open-ai-chatbot-demo.gif")',
        backgroundSize: "cover",
    }}
    alt="AiChat demo"
></div>

And _NLUX_ is handling all the UI interactions and the communication with the OpenAI API.
